<div style="width: 90%; text-align:center;">
	<?php echo $dataHeader; ?>
</div>
<?php if (count($dataLanding) != 0): ?>
    <?php foreach ($dataLanding as $v): ?>
        <?php if ($v['type'] == 1): ?>
            <div class="inner-content box green">
                <div class="title">
                    <div><?php echo $v['title'] ?></div>
                </div>

                <div id="list-product">
                    <?php if (count($v['post']) != 0): ?>
                        <?php $i = 1; ?>
                        <?php foreach ($v['post'] as $p): ?>
                            <div class="title-tooltip block" title="<?php echo $p['title'] ?> - <span style='color:#6CA427'><?php echo $siteTitle ?></span> | <p><?php echo $p['description'] ?></p> <p><strong>Giá Bán: <?php echo ($p['price'] != 0) ? number_format($p['price'], 0, '.', '.') : '0' ?> đ/kg</strong> <p><strong>ĐT liên hệ : <span style='color:#78B02B;font-weight: bold'><?php echo $p['phone'] ?></span></strong></p></p>">
                                <a href="<?php echo site_url($this->mycommon->convertToAlias($p['title']) . '_' . $p['id']) ?>">
                                    <img height="109" width="165" alt="" src="<?php echo $this->mycommon->renderThumbImage($p['link_img'], 165, 109) ?>"/>
                                </a>
                                <a href="<?php echo site_url($this->mycommon->convertToAlias($p['title']) . '_' . $p['id']) ?>">
                                    <strong><?php echo word_limiter($p['title'], 4, ' ...') ?></strong>
                                </a>
                            </div>
                            <?php
                            $i++;
                            if ($i == 9)
                                break;
                            ?>
                        <?php endforeach; ?>
                    <?php endif; ?>
                </div>
                <div class="clear"></div>
            </div>
        <?php elseif ($v['type'] == 2): ?>
            <div class="inner-content box green">
                <div class="title">
                    <div><?php echo $v['title'] ?></div>
                </div>

                <div id="news-content" class="content">
                    <div class="large" current="">
                        <img height="199" width="350" src="">
                        <a href="#" class="title"></a>
                    </div>
                    <div class="relate">
                        <?php if (count($v['post']) != 0): ?>
                            <?php $i = 1; ?>
                            <ul>
                                <?php foreach ($v['post'] as $n): ?>
                                    <li id="news-<?php echo $i; ?>">
                                        <a href="<?php echo site_url($this->mycommon->convertToAlias($n['title']) . '_' . $n['id']) ?>">
                                            <img height="40" width="64" alt="<?php echo $n['title'] ?>" src="<?php echo $this->mycommon->renderThumbImage($n['link_img'], 64, 40) ?>" cursrc="<?php echo $n['link_img'] ?>"/>
                                            <span><?php echo $n['title'] ?></span>
                                        </a>
                                    </li>
                                    <?php
                                    $i++;
                                    if ($i == 5)
                                        break;
                                    ?>
                            <?php endforeach; ?>
                            </ul>
            <?php endif; ?>
                    </div>
                    <div class="clear-fix"></div>
                </div>
            </div>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>